﻿using SqlSugar;

namespace DataModels.Entities.ServiceDay
{
    /// <summary>
    /// 积分兑换记录表
    /// </summary>
    [SugarTable]
    public class ServiceDayPointsRedemptionRecord
    {
        [SugarColumn(IsPrimaryKey = true)]
        public Guid UUID { get; set; }

        /// <summary>
        /// 商品UUID
        /// </summary>
        public Guid ServiceDayPointsProductUUID { get; set; }

        /// <summary>
        /// 消耗的分数
        /// </summary>
        public int Points { get; set; }

        /// <summary>
        /// 兑换时间
        /// </summary>
        public DateTime CreateTime { get; set; } = DateTime.Now;

        /// <summary>
        /// 兑换人
        /// </summary>
        public Guid CreateUserUUID { get; set; }
    }
}
